package com.xiaofeixia.sj.serviceimpl;

import com.xiaofeixia.sj.dao.UserDAO;
import com.xiaofeixia.sj.entity.User;
import com.xiaofeixia.sj.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource
    private UserDAO userDAO;

    /**
     * 查询用户信息
     * @return
     */
    @Override
    public List<User> SelectUser() {
        return userDAO.SelectUser();
    }

    @Override
    public User SelectLogin(String username, String password) {
        return userDAO.SelectLogin(username,password);
    }
}
